# Contributor:
# Maintainer:
pkgname=scons
pkgver=3.1.2
pkgrel=1
pkgdesc="Software construction system"
url="http://www.scons.org"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
source="https://downloads.sourceforge.net/scons/scons-$pkgver.tar.gz"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	# workaround for https://github.com/SCons/scons/issues/2891
	sed -i '1s|/usr/bin/env python$|/usr/bin/python3|' "$pkgdir"/usr/bin/*

}

check() {
	python3 setup.py check
}

sha512sums="bfc0d58d33408a03eb37c1eff166af8139078026e6b43d6274afceac889d0a6743e359e89ad9a30be5ca43aeed26fba92fa4732854750b7d53091ef3e99b3d33  scons-3.1.2.tar.gz"
